package com.ding.client.a;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author ding
 * @date 2021/3/9 10:13
 */

@Configuration
public class TokenStoreConfig {



    @Autowired
    private ResourceServerProperties resourceServerProperties;

//    @Primary
//    @Bean
//    public TokenStore jwtTokenStore() {
//        return new JwtTokenStore(new JwtAccessTokenConverter());
//    }

//    @Bean
//    public JwtAccessTokenConverter jwtAccessTokenConverter() {
//        JwtAccessTokenConverter jwtAccessTokenConverter = new JwtAccessTokenConverter();
//        jwtAccessTokenConverter.setVerifierKey(resourceServerProperties.getJwt().getKeyValue());
//        return jwtAccessTokenConverter;
//    }

}
